package com.by.common.exception;

import org.springframework.validation.BindingResult;

import java.util.Map;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/14 14:28
 * @since JDK1.8
 */
public class ValidateException extends  RuntimeException{


    Map<String, String> errorMap;

    public ValidateException(Map error) {
        super("验证异常");
        this.errorMap = error;
    }

    public Map<String, String> getErrorMap() {
        return errorMap;
    }
}
